﻿using PMS.Core.Configuration;

namespace PMS.Plugin.ExternalAuth.DingTalkScan
{
    /// <summary>
    /// Represents settings of the DingTalk authentication method
    /// 使用钉钉提供的扫码登录页面
    /// </summary>
    public class DingTalkScanExternalAuthSettings : ISettings
    {
        /// <summary>
        /// 固定为snsapi_login
        /// </summary>
        public const string ScanScope = "snsapi_login";

        /// <summary>
        /// Gets or sets OAuth2 client identifier
        /// https://ding-doc.dingtalk.com/doc#/serverapi2/kymkv6/jfDu3
        /// </summary>
        public string AppId { get; set; }

        /// <summary>
        /// Gets or sets OAuth2 client secret
        /// </summary>
        public string AppSecret { get; set; }
    }
}
